#pragma once

#include <WinSock2.h>
#include "SOCK_Stream.h"
#include "SOCK_Acceptor.h"
#include "Event.h"

#define MAX_HANDLES 128

namespace Network
{
	class EventHandler {
	public:
		virtual void handle(unsigned char* data) = 0;
		virtual SOCK_Acceptor getHandle(void) = 0;
		virtual EventType getType(void) { return EVENT_NONE; }
	};

	typedef struct {
		int count;
		EventHandler* handlesArray[MAX_HANDLES];
	} HandlerMap;
}






